// AlgorithmCollections.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
#include <iostream>
#include "Utility.h"
#include "StringAlgorithm.h"
#include "Matrix.h"
#include "MyVector.h"
#include <string>
#include "MyList.h"
#include "MyStack.h"
#include "CommonAlgorithm.h"
#include "sort.h"
#include "ListAlgorithm.h"

using namespace std;


class Person{
private:
	string name;
	int age;
public:
	Person(string nm, int a): name(nm), age(a){}
	Person() {}
	void Modify(int a){
		age = a;
	}
	friend ostream& operator<<(ostream &os, const Person& p){
	return os << p.name<<" "<<p.age;                                                              
	}
};



int _tmain(int argc, _TCHAR* argv[])
{	
	Node *head = new Node;
	head->next = NULL;
	head->value = -1;
	CreateList(head);
	PrintList(head);
	cout<<endl;
	Node *head2 = new Node;
	head2->next = NULL;
	head2->value = -1;
	CreateList(head2);
	PrintList(head2);
	cout<<endl;
	head2 = MergeList(head,head2);
	PrintList(head2);
	cout<<endl;
	system("pause");
	return 0;
}

